* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide global scrollbar */
html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    overscroll-behavior: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}


body {
    font-family: 'Roboto', sans-serif;
    background-color: #9F2B2C;
    color: #FFFFFF;
    height: 100vh;
    width: 100vw;
    display: flex;
    overflow: hidden;
}

/* Background concentric circles pattern */
.background-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background-color: #FFFFFF;
    opacity: 0.03;
    transform: translate(-50%, -50%);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: 0;
    left: 0;
}

.circle-2 {
    width: 1000px;
    height: 1000px;
    top: 0;
    left: 100px;
    opacity: 0.02;
}

.circle-3 {
    width: 1400px;
    height: 1400px;
    top: 0;
    left: 200px;
    opacity: 0.01;
}

/* Sidebar structure */
.sidebar {
    height: 100vh;
    width: 435px;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    transform-origin: top left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; /* Required for z-index */
    z-index: 1001; /* Above main content */
    overflow: visible; /* Allow tooltips to hang out */
}

/* Aggressive scaling for short screens */
@media (max-height: 850px) {
    .sidebar {
        transform: scale(0.9);
        width: 484px;
        /* Compensate width to keep content readable */
    }
}

@media (max-height: 720px) {
    .sidebar {
        transform: scale(0.8);
        width: 545px;
    }
}

@media (max-height: 600px) {
    .sidebar {
        transform: scale(0.7);
        width: 624px;
    }
}

/* 2. Logo and Title styling */
.logo-section {
    margin-top: clamp(20px, 10vh, 212px);
    margin-left: 104px;
    margin-bottom: clamp(20px, 8vh, 128px);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-section:hover {
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    height: clamp(30px, 4vh, 42px);
    width: auto;
}

.logo-text .title {
    font-weight: 900;
    font-size: clamp(14px, 2.5vh, 18px);
    letter-spacing: 0.05em;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 4vh, 54px);
    margin-left: 99px;
    /* Removed flex-grow to allow fixed spacing below */
}

.nav-text {
    font-weight: 700;
    font-size: clamp(16px, 3vh, 25px);
}

.nav-icon {
    width: clamp(30px, 5vh, 50px);
    height: clamp(30px, 5vh, 50px);
}

.nav-item {
    text-decoration: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    width: fit-content;
    padding: 10px 0;
    transition: all 0.2s ease;
}

.nav-item:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.nav-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    font-weight: 700;
    /* bold */
    font-size: 25px;
}

/* Navigation item effects (Plaque) */
.nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -99px;
    /* Attach to the left edge of the sidebar (sidebar has no padding, menu has 99px margin) */
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    width: 400px;
    /* Increased length for a more prominent plaque effect */
    height: 90px;
    background-color: #F86466;
    border-radius: 0 10px 10px 0;
    /* 10px rounding on the right side */
    box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.25);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-item:hover::before {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
}

.nav-item.active .nav-text {
    position: relative;
}

.nav-item.active .nav-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
}

.nav-item.disabled {
    cursor: pointer; /* Keep pointer for tooltip */
}

.nav-item.disabled .nav-icon,
.nav-item.disabled .nav-text {
    opacity: 0.3 !important;
    pointer-events: none; /* Only disable clicks for the text and icon */
}

/* Inactive main content when extension is missing and tab is not block list */
.extension-missing .main-content:not(.block-list-active) {
    opacity: 0.5;
    pointer-events: none;
}

.nav-item.disabled:hover::before {
    display: none; /* No red plaque on hover for disabled items */
}

/* Custom Tooltip Styling */
.custom-tooltip {
    position: absolute;
    left: calc(100% + 20px);
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: #F86466;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Top of everything */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    color: white;
}

.custom-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
    pointer-events: auto;
}

/* Tooltip Arrow and Hover Bridge */
.custom-tooltip::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #F86466;
}

/* Hover bridge to prevent disappearing */
.custom-tooltip::before {
    content: '';
    position: absolute;
    left: -20px; /* Bridge the 20px gap */
    top: 0;
    width: 20px;
    height: 100%;
    background: transparent;
}

.tooltip-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 400;
}

.tooltip-btn {
    width: 100%;
    padding: 10px;
    background: white;
    color: #F86466;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.tooltip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 18px rgba(0, 0, 0, 0.3);
}

.tooltip-btn:active {
    transform: translateY(0);
    background-color: #f0f0f0;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

/* Protection section */
/* Protection section */
.protection-section {
    margin-top: 47px;
    /* Calculated for 81px distance from text to container */
    margin-left: 99px;
    /* Aligned with menu */
    margin-bottom: 0;
    /* Removed to control distance via separator */
}

.section-label {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.sidebar .progress-container {
    width: 220px;
    height: 32px;
    background-color: rgba(61, 16, 16, 0.4) !important;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 6px;
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* Override DAILY PULSE animation */
    opacity: 1 !important;
    animation: none !important;
}

.sidebar .progress-bar {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 50%; /* Default, overwritten by JS */
    background-color: #D4FF00;
    border-radius: 0;
    box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Override DAILY PULSE size rules */
    max-width: 100% !important;
    overflow: visible !important;
    animation: none !important;
    opacity: 1 !important;
}

.sidebar .progress-bar.is-hazard {
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 10px,
        transparent 10px,
        transparent 20px
    ) !important;
    background-size: 200% 100% !important;
    animation: hazard-move 2s linear infinite, pulse-warning 1.5s ease-in-out infinite !important;
}

@keyframes hazard-move {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

@keyframes pulse-warning {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.sidebar .progress-text {
    font-weight: 700;
    font-size: 18px;
    color: #1A3A22;
    position: relative;
    z-index: 2;
    /* Override DAILY PULSE positioning */
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

body>aside>div.protection-section>div.protection-status {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 100 !important;
    font-size: 14px !important;
    color: #636363 !important;
    margin-top: 5px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-transform: capitalize !important;
}




.separator {
    margin-left: 16px;
    /* Specifically 16px from left edge as per MD */
    width: 200px;
    height: 0.5px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    /* 8px from Protection inactive */
    margin-bottom: 43.5px;
    /* Maintains the 52px total distance to Support (8 + 0.5 + 43.5 = 52) */
}

/* Support section */
.support-section {
    margin-left: 99px;
    /* Aligned with menu */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-label {
    font-weight: 300;
    /* light */
    font-size: 18px;
}

.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.telegram-link:hover {
    transform: scale(1.1);
}

/* Main Content Area */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: auto;
    /* Changed to auto to prevent overlap/clipping */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Remove padding as inner sections have it */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.main-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

/* Page Common Styles */
.content-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Overview (Daily Pulse and Focus Audit) Specific Styles */
#daily-pulse,
#overview {
    padding: 40px 20px;
    max-width: calc(100vw - 435px);
    margin: 0 auto;
}

#overview-section .overview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#overview-section .overview-header {
    display: flex;
    justify-content: space-between;
    width: 686px;
    padding: 0 80px;
    /* Equal margins from the edges of the block */
    box-sizing: border-box;
    margin-top: 220px;
    /* Moved buttons much lower */
    margin-bottom: 5px;
    transform: translateX(-35px);
    /* Synchronized with main-card for perfect alignment */
    opacity: 1;
    /* Changed from 0 to 1 to ensure visibility */
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

#overview-section .sub-tab {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #FFFFFF;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
    position: relative;
    z-index: 1;
    /* Required for plaque positioning */
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#overview-section .sub-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 231px;
    height: 55px;
    background-color: #F86466;
    border-radius: 12px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

#overview-section .sub-tab:hover::before,
#overview-section .sub-tab.active::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#overview-section .sub-tab:hover,
#overview-section .sub-tab.active {
    opacity: 1;
}

#overview-section .sub-tab:active {
    transform: scale(0.92);
    /* 'Pressed down' effect */
}

#daily-pulse-container .main-card,
#focus-audit-container .main-card {
    width: 686px;
    height: 540px; /* Kept at 540px as requested */
    background: #C54D4E;
    border-radius: 30px;
    padding: 25px 37px 55px 37px; /* Increased bottom padding for neat frame effect */
    display: flex;
    flex-direction: column;
    transform: translateX(-35px);
}

#daily-pulse-container .goal-section {
    margin-bottom: 10px;
}

#daily-pulse-container .goal-title {
    font-weight: 900;
    font-size: 25px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 12px;
}

#daily-pulse-container .progress-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

#daily-pulse-container .progress-bar {
    width: 613px;
    height: 32px;
    background-color: transparent;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
}

#daily-pulse-container .progress-fill {
    height: 100%;
    background: #76D18B;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.25);
}

#daily-pulse-container .progress-text {
    font-weight: 700;
    font-size: 18px;
    color: #1A3A22;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#daily-pulse-container .content-grid {
    display: grid;
    grid-template-columns: 351px 249px;
    gap: 9px;
    flex: 1;
}

#daily-pulse-container .focus-card {
    background: #F86466;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 351px;
    height: 410px;
}

#daily-pulse-container .card-header {
    width: 100%;
    margin-bottom: 12px;
}

#daily-pulse-container .card-title {
    font-weight: 900;
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

#daily-pulse-container .legend {
    display: flex;
    gap: 14px;
}

#daily-pulse-container .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

#daily-pulse-container .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

#daily-pulse-container .focus-color {
    background: #76D18B;
}

#daily-pulse-container .block-color {
    background: #FFB347;
}

#daily-pulse-container .legend-text {
    font-weight: 700;
    font-size: 15px;
    color: #FFFFFF;
    text-transform: uppercase;
}

#daily-pulse-container .diagram-container {
    width: 227px;
    height: 227px;
    margin-bottom: 23px;
}

#daily-pulse-container .focus-ring {
    width: 100%;
    height: 100%;
}

#daily-pulse-container .diagram-text {
    font-weight: 900;
    font-size: 52px;
    fill: #FFFFFF;
}

#daily-pulse-container .focus-status {
    font-weight: 900;
    font-size: 25px;
    color: #FFFFFF;
    text-transform: uppercase;
}

#daily-pulse-container .stats-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px;
}

#daily-pulse-container .stat-card {
    width: 249px;
    height: 200px;
    background: #F86466;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#daily-pulse-container .stat-label {
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 3px;
    white-space: nowrap;
}

#daily-pulse-container .stat-value {
    font-weight: 900;
    font-size: 85px;
    color: #FFFFFF;
    line-height: 0.9;
    margin: 3px 0 17px 0;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#daily-pulse-container .stat-unit {
    font-weight: 700;
    font-size: 25px;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* Block List Specific Styles */
#blocklist .main-card {
    width: 686px;
    height: 611px;
    background: #C54D4E;
    border-radius: 30px;
    padding: 40px 95px;
    /* Increased side padding to center 495px wide content */
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    /* Center the input-section and container */
    transform: translateX(-35px);
}

#blocklist .header-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

#blocklist .page-title {
    font-weight: 900;
    font-size: 32px;
    color: #FFFFFF;
    margin-right: 19px;
}

#blocklist .counter-badge {
    width: 61.11px;
    height: 61.11px;
    border: 5px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 28px;
    color: #FFFFFF;
}

#blocklist .input-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

#blocklist .url-input {
    width: 337px;
    height: 61px;
    background: #FFFFFF;
    border: none;
    border-radius: 13px;
    padding: 0 25px;
    font-weight: 200;
    font-size: 18px;
    color: #333333;
    outline: none;
}

#blocklist .add-btn {
    width: 143px;
    height: 61px;
    background: #FFFFFF;
    border: none;
    border-radius: 13px;
    font-weight: 900;
    font-size: 25px;
    color: #333333;
    cursor: pointer;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

#blocklist .add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 18px rgba(0, 0, 0, 0.3);
}

#blocklist .add-btn:active {
    transform: translateY(0);
    background-color: #f0f0f0;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.2);
}

#blocklist .arrow-container {
    position: absolute;
    left: -120px;
    top: 280px;
    width: 100px;
    height: 180px;
    z-index: 10;
}

#blocklist .arrow-image {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    animation: arrowFadeIn 0.8s ease-out forwards, arrowFloat 2.5s ease-in-out 0.8s infinite;
}

#blocklist .empty-state {
    width: 495px;
    /* Matches input section width */
    height: 340px;
    background: #F86466;
    border: 1px solid #F14C4E;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 53px;
}

#blocklist .empty-icon {
    width: 127px;
    height: 127px;
    margin-bottom: 17px;
}

#blocklist .empty-text {
    font-weight: 400;
    font-size: 25px;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.4;
}

#blocklist .sites-container {
    flex: 1;
    position: relative;
    width: 495px;
    margin: 0 auto;
    overflow: visible;
}

#blocklist .sites-list {
    height: auto;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: visible;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    transition: none;
}

#blocklist .sites-list.has-scrollbar {
    padding-right: 45px;
}

#blocklist .sites-list::-webkit-scrollbar {
    width: 35px;
    display: block;
}

#blocklist .sites-list::-webkit-scrollbar-track {
    background: rgba(61, 16, 16, 0.4);
    border-radius: 20px;
}

#blocklist .sites-list::-webkit-scrollbar-thumb {
    background: #FF7E80;
    border-radius: 20px;
}

#blocklist .site-item {
    width: 495px;
    /* Matches input section exactly */
    height: 60px;
    background: #F86466;
    border: 1px solid #F14C4E;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 20px 0 33px;
    margin-bottom: 9px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Items no longer shrink; the list container handles the scrollbar space */
#blocklist .sites-list.has-scrollbar .site-item {
    width: 495px;
}

#blocklist .site-item:hover {
    background: #FF7779;
    transform: translateX(-3px) scale(0.98);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

#blocklist .site-name {
    flex: 1;
    font-weight: 600;
    font-size: 18px;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* Premium Animations */
@keyframes premiumAdd {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes premiumRemove {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 60px;
        margin-bottom: 9px;
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateX(40px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        filter: blur(4px);
        pointer-events: none;
    }
}

#blocklist .site-item.adding {
    animation: premiumAdd 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#blocklist .site-item.removing {
    animation: premiumRemove 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
}

#blocklist .site-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 15px;
}

#blocklist .delete-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.25));
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#blocklist .delete-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

#blocklist .delete-btn:active {
    transform: scale(0.8) rotate(90deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2)) brightness(0.8);
}

/* Password/Discipline Level Specific Styles */
#discipline-level .discipline-panel {
    width: 686px;
    height: 611px;
    background: #C54D4E;
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: translateX(-35px);
}

#discipline-level .discipline-header {
    text-align: center;
    margin-bottom: 20px;
}

#discipline-level .discipline-header h1 {
    font-weight: 900;
    font-size: 45px;
    color: #FFFFFF;
    margin: 0;
}

#discipline-level .discipline-header p {
    font-weight: 400;
    font-size: 22px;
    color: #FFFFFF;
    margin: 5px 0 0 0;
}

#discipline-level .discipline-main {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    flex: 1;
}

#discipline-level .cards-scroll-area {
    width: 500px;
    /* Увеличено с 480px, чтобы дать место для scale и теней */
    height: 253px;
    overflow-y: auto;
    overflow-x: visible;
    /* Разрешаем вылет эффектов по горизонтали */
    padding: 10px 20px;
    /* Добавляем "воздух" для анимации */
}

#discipline-level .cards-scroll-area::-webkit-scrollbar {
    width: 0;
}

#discipline-level .level-card {
    width: 460px;
    background-color: transparent;
    border-radius: 20px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid transparent;
}

#discipline-level .level-card.active {
    border-color: white;
    transform: scale(1.02);
    z-index: 10;
}

/* Base background colors for each level */
#discipline-level .level-card[data-level="1"] .card-main-content {
    background-color: #FF7E80;
}

#discipline-level .level-card[data-level="2"] .card-main-content {
    background-color: #F86466;
}

#discipline-level .level-card[data-level="3"] .card-main-content {
    background-color: #E14B4D;
}

#discipline-level .level-card[data-level="4"] .card-main-content {
    background-color: #C13234;
}

#discipline-level .card-main-content {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 110px;
    border-radius: 17px;
    position: relative;
    z-index: 2;
    /* Карточка уровня поверх аккордеона */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    /* Глубокая тень для эффекта нависания */
}

#discipline-level .level-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#discipline-level .level-text-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#discipline-level .level-title {
    font-weight: 900;
    font-size: 25px;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1.1;
}

#discipline-level .level-specs {
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 1.2;
}

#discipline-level .level-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#discipline-level .level-quote {
    font-weight: 400;
    font-style: italic;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

#discipline-level .more-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

#discipline-level .triangle {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Accordion Handling */
#discipline-level .level-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset -5px 10px 20px rgba(0, 0, 0, 0.25);
    margin-top: -10px;
    /* Заезжаем под карточку */
    padding-top: 10px;
    /* Компенсируем отступ, чтобы контент не прижимался */
}

#discipline-level .level-card.expanded .level-details {
    max-height: 250px;
}

#discipline-level .level-card.expanded .triangle {
    transform: rotate(180deg);
}

#discipline-level .details-content {
    padding: 25px 25px 30px 25px;
}

#discipline-level .details-title {
    font-weight: 900;
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

#discipline-level .details-list {
    list-style: none;
    padding: 0;
}

#discipline-level .details-list li {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#discipline-level .bullet {
    width: 13px;
    height: 13px;
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

#discipline-level .custom-radio {
    width: 34px;
    height: 34px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

#discipline-level .radio-dot {
    width: 24px;
    height: 24px;
    background-color: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

#discipline-level .level-card.active .radio-dot {
    opacity: 1;
    transform: scale(1);
}

#discipline-level .level-card.disabled {
    opacity: 0.6;
    cursor: url('../../Pop-up/development/assets/icons/block_this_site_hover_icon.svg') 11 11, not-allowed;
    pointer-events: auto;
}

#discipline-level .level-card.locked {
    opacity: 0.5 !important;
    filter: grayscale(0.6);
    cursor: not-allowed !important;
    pointer-events: none !important;
}

#discipline-level .level-card.locked.active {
    opacity: 1 !important;
    filter: none;
}

#discipline-level .level-card.disabled * {
    pointer-events: none;
}

#discipline-level .coming-soon-badge {
    position: absolute;
    bottom: 15px;
    right: 20px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.9;
}

#discipline-level .scrollbar-track {
    width: 35px;
    height: 253px;
    background-color: rgba(61, 16, 16, 0.4);
    border-radius: 20px;
    position: relative;
}

#discipline-level .scrollbar-thumb {
    width: 100%;
    background-color: #FF7E80;
    border-radius: 20px;
    position: absolute;
    top: 0;
    cursor: pointer;
}

#discipline-level .discipline-footer {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

#discipline-level .btn {
    width: 257px;
    height: 61px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#discipline-level .btn:hover:not(:disabled) {
    transform: translateY(-5px);
}

#discipline-level .btn:active:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(0.9);
}

#discipline-level .btn-set {
    background-color: #FFFFFF;
    color: #555555;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

#discipline-level .btn-set:hover:not(:disabled) {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

#discipline-level .btn-set:active:not(:disabled) {
    background-color: #f0f0f0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

#discipline-level .btn:disabled,
#discipline-level .btn[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    background-color: #F86466 !important;
    /* Keep original color but faded */
    color: #FFFFFF !important;
}

#discipline-level .btn-remove:not(:disabled) {
    background-color: #F86466;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
}

#discipline-level .btn-remove:hover:not(:disabled) {
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.3);
}

#discipline-level .btn-remove:active:not(:disabled) {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Import/Export Specific Styles */
#import-export {
    flex-direction: column;
}

#import-export .main-card {
    width: 686px;
    height: 611px;
    background: #C54D4E;
    border-radius: 30px;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-35px);
}

#import-export .page-title {
    font-weight: 900;
    font-size: 45px;
    color: #FFFFFF;
    margin-bottom: 40px;
    text-align: center;
}

#import-export .cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#import-export .action-card {
    width: 580px;
    height: 140px;
    background: #F86466;
    border-radius: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 20px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#import-export .action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.25);
    background: #FF7779;
}

#import-export .card-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2));
}

#import-export .card-text {
    margin-left: 30px;
    font-weight: 600;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 1.3;
}

#import-export .icon-svg {
    width: 100%;
    height: 100%;
}

/* Apply animations to elements */
#daily-pulse .goal-title,
#blocklist .page-title,
#discipline-level .discipline-header,
#import-export .page-title {
    opacity: 1;
    /* Changed from 0 to 1 */
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

#daily-pulse .goal-section .progress-container,
#blocklist .input-section,
#discipline-level .discipline-main,
#import-export .cards-wrapper {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

#daily-pulse .progress-fill.animate {
    animation: progressFill 1s ease-out 0.2s forwards;
}

#daily-pulse .focus-card,
#blocklist .sites-container,
#discipline-level .discipline-footer {
    opacity: 1;
    /* Changed from 0 to 1 */
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

#daily-pulse .stat-card:nth-child(1) {
    opacity: 1;
    /* Changed from 0 to 1 */
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

#daily-pulse .stat-card:nth-child(2) {
    opacity: 1;
    /* Changed from 0 to 1 */
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

#daily-pulse .diagram-container {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.2s both;
}

#daily-pulse .focus-status {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

/* Common Animations */
@keyframes arrowFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes arrowFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: var(--progress-width);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* FOCUS AUDIT STYLES (Scoped) */
#focus-audit-container .main-card {
    width: 686px;
    height: 540px;
    /* Matching Daily Pulse exactly */
    background-color: #C54D4E;
    border-radius: 30px;
    padding: 25px 37px 37px 37px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-35px);
    /* Alignment matching Daily Pulse */
}

#focus-audit-container .card {
    background-color: #F86466;
    border-radius: 20px;
    padding: 25px;
    color: #FFFFFF;
}

#focus-audit-container .filter-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

#focus-audit-container .filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

#focus-audit-container .filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#focus-audit-container .filter-btn.active {
    background: #FFFFFF;
    color: #F86466;
    border-color: #FFFFFF;
}

#focus-audit-container .calendar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#focus-audit-container .calendar-btn {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#focus-audit-container .calendar-btn svg {
    display: block;
}

#focus-audit-container .top-row {
    display: flex;
    gap: 10px;
}

#focus-audit-container .top-distractions {
    width: 288px;
    height: 195px;
    padding: 25px 40px 25px 25px;
    display: flex;
    flex-direction: column;
}

#focus-audit-container .lost-productivity {
    width: 203px;
    height: 197px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#focus-audit-container .extra-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 89px;
    height: 197px;
}

#focus-audit-container .small-stat-card {
    flex: 1;
    min-height: 0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#focus-audit-container .small-card-title {
    font-weight: 900;
    font-size: 10px;
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

#focus-audit-container .bypass-value {
    font-weight: 900;
    font-size: 60px;
    color: #FFFFFF;
    margin-top: 5px;
    line-height: 1;
}

#focus-audit-container .card-title {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#focus-audit-container .distractions-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#focus-audit-container .distraction-item {
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: default;
}

#focus-audit-container .icon-box {
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#focus-audit-container .icon-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

#focus-audit-container .social-name {
    font-weight: 600;
    font-size: 15px;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#focus-audit-container .add-btn {
    width: 25px;
    height: 25px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 50%;
    color: #F86466;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

#focus-audit-container .add-btn .btn-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

#focus-audit-container .add-btn.locked .btn-icon {
    transform: scale(0) rotate(180deg);
    opacity: 0;
}

#focus-audit-container .add-btn .lock-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(-180deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#focus-audit-container .add-btn.locked .lock-icon {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

#focus-audit-container .add-btn:hover {
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

#focus-audit-container .add-btn.locked:hover {
    transform: scale(1.2) rotate(-15deg);
}

#focus-audit-container .add-btn:active {
    transform: scale(0.9);
}

#focus-audit-container .add-btn.locked {
    background-color: #76D18B;
    color: #FFFFFF;
}

#focus-audit-container .add-btn.locked:hover {
    transform: scale(1.15);
    background-color: #6BC581;
}

#focus-audit-container .add-btn.locked:active {
    transform: scale(0.8);
}


#focus-audit-container .productivity-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -10px;
}

#focus-audit-container .productivity-content .value {
    font-weight: 900;
    font-size: 71px;
    line-height: 1;
}

#focus-audit-container .productivity-content .unit {
    font-weight: 700;
    font-size: 25px;
    margin-top: 6px;
}

#focus-audit-container .screen-time-audit {
    width: 100%;
    min-height: 235px;
    /* Adjusted to fit 540px main-card */
    padding: 25px;
    margin-top: 10px;
}

#focus-audit-container .audit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

#focus-audit-container .header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

#focus-audit-container .audit-actions {
    display: flex;
    gap: 6px;
}

#focus-audit-container .action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: 9px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

#focus-audit-container .action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#focus-audit-container .action-btn:active {
    transform: scale(0.95);
}

#focus-audit-container .action-btn.active {
    background: #FFFFFF;
    color: #F86466;
    border-color: #FFFFFF;
}

#focus-audit-container .audit-title {
    font-weight: 700;
    font-size: 25px;
}

#focus-audit-container .audit-body {
    display: flex;
    justify-content: space-between;
}

#focus-audit-container .sites-summary {
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 130px;
    overflow-y: auto;
    overflow-x: visible;
    padding-right: 15px;
    padding-left: 5px;
    /* Tiny buffer */
}

/* Custom Scrollbar for summary */
#focus-audit-container .sites-summary::-webkit-scrollbar {
    width: 35px;
}

#focus-audit-container .sites-summary::-webkit-scrollbar-track {
    background: rgba(61, 16, 16, 0.4);
    border-radius: 20px;
}

#focus-audit-container .sites-summary::-webkit-scrollbar-thumb {
    background: #FF7E80;
    border-radius: 20px;
}

/* Removed hover effect to keep site names static */
#focus-audit-container .summary-item {
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: default;
}

#focus-audit-container .site-info {
    font-weight: 600;
    font-size: 15px;
}

#focus-audit-container .search-and-list {
    width: 264.12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 5px;
}

#focus-audit-container .search-box {
    width: 264.12px;
    height: 37px;
    background: #FFFFFF;
    border-radius: 13px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

#focus-audit-container .search-icon img {
    width: 16px;
    height: 16px;
}

#focus-audit-container .search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-weight: 900;
    font-size: 15px;
    color: #333;
}

#focus-audit-container .search-box input::placeholder {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 15px;
    color: #A9A9A9;
    opacity: 1;
}

#focus-audit-container .websites-list-container {
    height: 130px;
    overflow-y: auto;
    overflow-x: visible;
    padding-right: 15px;
    padding-left: 5px;
    /* Tiny buffer */
}

#focus-audit-container .websites-list-container::-webkit-scrollbar {
    width: 25px;
}

#focus-audit-container .websites-list-container::-webkit-scrollbar-track {
    background: rgba(61, 16, 16, 0.4);
    border-radius: 20px;
}

#focus-audit-container .websites-list-container::-webkit-scrollbar-thumb {
    background: #FF7E80;
    border-radius: 20px;
}

#focus-audit-container .websites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Removed hover effect to keep site names static */
#focus-audit-container .list-item {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}

#focus-audit-container .list-item input[type="radio"] {
    appearance: none;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

#focus-audit-container .list-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: #F86466;
    border-radius: 50%;
}

#focus-audit-container .list-item label {
    font-weight: 600;
    font-size: 10px;
    color: #FFFFFF;
    text-transform: uppercase;
    cursor: pointer;
}

/* --- IMPORT/EXPORT STYLES --- */
#import-export .main-card {
    width: 686px;
    height: 611px;
    background: #C54D4E;
    border-radius: 30px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-35px);
}

#import-export .page-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 45px;
    color: #FFFFFF;
    margin-bottom: 40px;
    margin-top: 20px;
    text-align: center;
}

#import-export .cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    width: 100%;
}

#import-export .action-card {
    width: 530px;
    height: 140px;
    background: #F86466;
    border-radius: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 15px 40px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#import-export .action-card:hover {
    background: #FF7E80;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.25);
}

#import-export .action-card:active {
    transform: scale(0.92);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
}

#import-export .card-icon {
    width: 115px;
    height: 115px;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.15));
}

#import-export .card-text {
    margin-left: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 1.2;
}

#import-export .icon-svg {
    width: 100%;
    height: 100%;
}

/* Burger Menu Styles */
.burger-menu-btn {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.burger-menu-btn .bar {
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #FFFFFF;
    border-radius: 4px;
    transition: all 0.5s ease;
}

.burger-menu-btn .bar-1 {
    top: 0;
}

.burger-menu-btn .bar-2 {
    top: 50%;
    transform: translateY(-50%);
}

.burger-menu-btn .bar-3 {
    bottom: 0;
}

/* Active State for Burger Button (Cross) */
.burger-menu-btn.active {
    left: calc(100% - 70px);
    /* Move to right */
    transform: rotate(360deg);
}

.burger-menu-btn.active .bar-1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger-menu-btn.active .bar-2 {
    opacity: 0;
}

.burger-menu-btn.active .bar-3 {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Intermediate Screen Range (800px - 1036px) - Mini-Sidebar (Icons Only) */
@media screen and (min-width: 800px) and (max-width: 1036px) {
    .sidebar {
        width: 120px;
        /* Narrow width for icons */
        align-items: center;
        padding: 20px 0;
        flex-shrink: 0;
    }

    /* Hide text elements in sidebar */
    /* Smoothly hide text elements instead of abrupt display: none */
    .logo-text,
    .nav-text,
    .section-label,
    .support-label,
    .progress-container,
    .protection-section {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        width: 0;
        height: 0;
        margin: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .logo-section {
        margin-left: 0;
        margin-top: 40px;
        margin-bottom: 60px;
        justify-content: center;
        transition: all 0.5s ease;
    }

    .nav-menu {
        margin-left: 0;
        gap: 20px;
        align-items: center;
        width: 100%;
        transition: all 0.5s ease;
    }

    .nav-item {
        justify-content: center;
        padding: 15px;
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-item::before {
        left: 0;
        width: 100%;
        /* Plaque covers full narrow sidebar */
        border-radius: 0;
        /* Square for mini-sidebar */
    }

    .protection-section {
        margin-left: 0;
        margin-top: 40px;
        transition: all 0.5s ease;
    }

    .separator {
        width: 60px;
        margin: 20px 0;
        transition: all 0.5s ease;
    }

    .support-section {
        margin-left: 0;
        justify-content: center;
        transition: all 0.5s ease;
    }

    .main-content {
        overflow-x: auto;
        overflow-y: auto;
        justify-content: center;
        align-items: flex-start;
        padding: 50px 40px;
        /* Set exactly 50px top padding as requested */
        scrollbar-width: thin;
        scrollbar-color: #FF7E80 rgba(61, 16, 16, 0.4);
    }

    /* Restore scrollbar visibility for vertical scrolling when needed */
    .main-content::-webkit-scrollbar {
        width: 10px;
        height: 0px;
        /* Keep horizontal hidden as per previous step */
        display: block;
    }

    .main-content::-webkit-scrollbar-track {
        background: rgba(61, 16, 16, 0.4);
        border-radius: 10px;
    }

    .main-content::-webkit-scrollbar-thumb {
        background: #FF7E80;
        border-radius: 10px;
    }

    /* Reset translations and align headers properly */
    #overview-section .overview-header,
    #daily-pulse-container .main-card,
    #focus-audit-container .main-card,
    #blocklist .main-card,
    #import-export .main-card,
    #discipline-level .discipline-panel {
        min-width: 686px;
        transform: translateX(0) !important;
        /* Remove the -35px offset */
        margin: 0 auto;
    }

    #overview-section .overview-header {
        width: 686px;
        /* Match card width exactly */
        padding: 0 40px;
        margin-bottom: 25px;
    }
}

/* Compact Sidebar Mode for Intermediate Screens (1037px - 1400px) */
@media screen and (min-width: 1037px) and (max-width: 1400px) {
    .sidebar {
        width: 280px;
    }

    .logo-section {
        margin-left: 40px;
    }

    .nav-menu {
        margin-left: 40px;
    }

    .nav-text {
        font-size: 20px;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
    }

    .nav-item::before {
        left: -40px;
        width: 260px;
        height: 70px;
    }

    .protection-section {
        margin-left: 40px;
    }

    .separator {
        width: 180px;
        margin-left: 40px;
    }

    .support-section {
        margin-left: 40px;
    }
}

/* Responsive Styles for < 800px (Mobile Mode) */
@media screen and (max-width: 799px) {
    .burger-menu-btn {
        display: block;
    }

    /* Restore visibility for mobile sidebar elements */
    .logo-text,
    .nav-text,
    .section-label,
    .protection-status,
    .support-label {
        opacity: 1;
        visibility: visible;
        width: auto;
        height: auto;
        margin: initial;
        overflow: visible;
        pointer-events: auto;
        transition: all 0.5s ease;
    }

    .sidebar .progress-container {
        opacity: 1;
        visibility: visible;
        width: 220px;
        height: 32px;
        overflow: hidden;
        margin-bottom: 6px;
        transition: all 0.5s ease;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #9F2B2C;
        z-index: 1000;
        transform: translateX(-110%);
        transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
        align-items: flex-start;
        padding: 50px 0 0 40px;
        /* Space for burger */
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar .logo-section {
        margin: 0 0 50px 0;
        justify-content: flex-start;
    }

    .sidebar .nav-menu {
        margin-left: 0;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }

    .sidebar .nav-item {
        justify-content: flex-start;
        width: 100%;
    }

    .sidebar .nav-item::before {
        left: -40px;
        transform: translateY(-50%) scaleX(0);
        transform-origin: left;
        width: 300px;
        border-radius: 0 10px 10px 0;
    }

    .sidebar .protection-section {
        margin-left: 0;
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar .separator {
        margin: 20px 0;
        width: 50%;
        margin-left: 0;
    }

    .sidebar .support-section {
        margin-left: 0;
        justify-content: flex-start;
    }

    html,
    body {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        overscroll-behavior: auto !important;
    }

    .main-content {
        width: 100vw;
        height: auto;
        min-height: 100vh;
        padding: 80px 10px 40px 10px;
        overflow-y: visible !important;
        overflow-x: hidden;
        display: block;
        /* Support natural scroll flow */
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-overflow-scrolling: touch;
    }

    .content-section {
        display: block !important;
        width: 100%;
        min-height: auto !important;
        padding: 0 !important;
    }

    #daily-pulse,
    #overview {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    #daily-pulse-container .main-card,
    #focus-audit-container .main-card,
    #blocklist .main-card,
    #import-export .main-card,
    #discipline-level .discipline-panel {
        transform: scale(0.65) !important;
        /* Scale without horizontal shift */
        transform-origin: top center;
        margin: -40px auto 0 auto;
        transition: all 0.5s ease;
    }

    #overview-section .overview-header {
        transform: scale(0.65) !important;
        /* Scale without horizontal shift */
        transform-origin: top center;
        width: 100%;
        padding: 0;
        margin: 0 auto 5px auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        transition: all 0.5s ease;
    }
}

/* Modal Styles (Shared) */
/* Premium Password Modal Styles */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.password-modal-content {
    position: relative;
    width: 475px;
    height: auto;
    background-color: #9F2B2C;
    border-radius: 40px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.password-modal.removing .password-modal-content {
    animation: modalPopOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

.password-modal.removing .password-modal-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalPopOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.password-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(128, 128, 128, 0.5);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10005;
}

.password-modal-close:hover {
    background: rgba(128, 128, 128, 0.8);
    transform: scale(1.1);
}

.password-modal-header {
    text-align: center;
    margin-bottom: 10px;
    z-index: 10002;
    color: white;
}

.password-modal-icon-container {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.password-modal-icon {
    width: 45px;
    height: 45px;
}

.password-modal-title,
.confirm-modal-title,
.alert-modal-title {
    font-size: 24px;
    font-weight: 900;
    color: white !important;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.password-modal-text-container {
    margin-bottom: 15px;
    text-align: center;
}

.password-modal-level-text {
    font-size: 14px;
    font-weight: 400;
    color: white !important;
    margin-bottom: 4px;
}

.password-modal-description {
    font-size: 12px;
    font-weight: 400;
    color: white !important;
    max-width: 325px;
    line-height: 1.3;
    margin: 0 auto;
}

.password-modal-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10002;
}

.password-modal-input-wrapper {
    width: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 auto;
}

.password-toggle-eye {
    position: absolute;
    right: 20px;
    top: 33px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.password-toggle-eye:hover {
    color: #333333;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-eye.visible {
    color: #F86466;
}

.password-modal-input {
    width: 410px !important;
    height: 66px !important;
    background: white !important;
    border: none !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    padding: 0 20px !important;
    color: #333333 !important;
    box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.25) !important;
    text-align: left !important;
    outline: none !important;
}

.password-modal-input.left-align {
    text-align: left !important;
}

.password-modal-input::placeholder {
    color: rgba(0, 0, 0, 0.2) !important;
    font-weight: 400;
}

.password-modal-buttons {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

/* Validation Hints for Level 2+ */
.validation-hints {
    width: 410px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hint-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.hint-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hint-item.valid {
    color: #FFFFFF;
}

.hint-item.valid .hint-dot {
    background-color: #76D18B;
    box-shadow: 0 0 10px rgba(118, 209, 139, 0.5);
}

.hint-item.invalid {
    color: #F86466;
}

.hint-item.invalid .hint-dot {
    background-color: #F86466;
}

/* Modal Buttons inherit pop-up styles */
.password-modal-btn {
    width: 213px !important;
    height: 66px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.password-modal-btn.btn-primary {
    background-color: white !important;
    color: #555555 !important;
    box-shadow: 0 20px 13px rgba(0, 0, 0, 0.25) !important;
}

.password-modal-btn.btn-secondary {
    background-color: #F86466 !important;
    color: white !important;
    border: 1px solid white !important;
    box-shadow: 0 10px 7px rgba(0, 0, 0, 0.25) !important;
}

.password-modal-btn:hover {
    transform: translateY(-8px);
    filter: brightness(1.05);
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.4) !important;
}

#alert-modal-ok {
    box-shadow: 0 20px 13px rgba(0, 0, 0, 0.25) !important;
}

.password-modal.alert-modal .password-modal-content,
.password-modal.confirm-modal .password-modal-content {
    width: 475px;
    height: auto;
    padding: 30px 25px;
}

.password-modal-error {
    color: #ffcccc !important;
    font-size: 18px;
    margin-top: 10px;
    height: 20px;
    text-align: center;
    display: none;
}

.password-modal-error.show {
    display: block;
}

/* Password Tab Specific Styles (for Discipline Level) */
#discipline-level .btn {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#discipline-level .discipline-footer.has-password .btn-set {
    background-color: #F86466 !important;
    color: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
    opacity: 0.6;
    cursor: not-allowed;
    transform: translateX(-272px) !important;
    pointer-events: none;
}

#discipline-level .discipline-footer.has-password .btn-remove:not(:disabled) {
    background-color: #FFFFFF !important;
    color: #555555 !important;
    border: none !important;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
    opacity: 1;
    cursor: pointer;
    transform: translateX(272px);
    pointer-events: auto !important;
}

#discipline-level .discipline-footer.has-password .btn-remove:hover {
    transform: translateX(272px) translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

#discipline-level .discipline-footer.has-password .btn-remove:active {
    transform: translateX(272px) translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Hover and active effects are now handled by variables in the base class */

/* Modal Styles moved to Dashboard global space */
.password-modal-forgot {
    text-align: center;
    margin-top: 8px;
}

.password-modal-forgot-link {
    color: #FFFFFF;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.password-modal-forgot-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Focus Audit List Item Styles */
#websites-list .list-item label {
    font-weight: 600 !important;
    font-size: 8px !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
}

.bypass-warning {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    background-color: #9F2B2C !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
    cursor: help !important;
}

.bypass-warning:hover {
    transform: scale(1.2) !important;
}

/* Temporarily Disabled Levels */
#discipline-level .level-card.disabled-temp {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

#discipline-level .level-card.disabled-temp .level-title::after {
    content: " (COMING SOON)";
    font-size: 14px;
    opacity: 0.7;
    margin-left: 10px;
    font-weight: 700;
}

#discipline-level .level-card.disabled-temp * {
    pointer-events: none;
}

#discipline-level .level-card.disabled-temp .more-btn {
    display: none;
}

/* ============================================================
   BLOCK LIST HEADER FIX
   Forces the badge to align on the same line as the page title
   ============================================================ */
#blocklist .header-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

#blocklist .page-title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 32px !important;
    font-weight: 900 !important;
}

#blocklist .counter-badge {
    flex-shrink: 0;
}